package com.study04;

public class Circle implements Count {
    double radius;
    String shape;
    Circle(){

    }

    Circle(double radius){
        this.radius = radius;
        this.shape = "圆";
    }

    @Override
    public double perimeter() {
        return 2 * 3.14 * this.radius;
    }

    @Override
    public double area() {
        return 3.14 * this.radius * this.radius;
    }

    public void printParam(){
        System.out.println("它的参数值为：" + this.radius);
    }
}
